

gen eligible = (sfa_2011 == 1 | sfa_2012 == 1)

xtile qmin_dist = min_dist_SWC, nq(5)
gen qmin_dist1 = (qmin_dist == 1) if !mi(qmin_dist)

gen listmun = (id_mun == 7 | id_mun == 25 | id_mun == 29 | id_mun == 43 | id_mun == 45 | id_mun == 53 | id_mun == 62 | id_mun == 73) // Municipalities with high 

cmp (sh_food = mother_t $controls)(mother_t = mother eligible $controls) if round == 2012 & q1_05==1 & outsample == 0, cluster(id_mun) indicators(1 4)


cmp (sh_food = mother_t $controls)(mother_t = mother eligible $controls)(eligible = qmin_dist1 $controls) if round == 2012 & q1_05==1 & outsample == 0, cluster(id_mun) indicators(1 4 4)


 
 
